package file;

import java.io.File;

/**
 * 删除目录
 */
public class DeleteDieDemo {
    public static void main(String[] args) {
        File file=new File("demo");
        if (file.exists()){

            System.out.println("目录已存在");
        }else {
            file.mkdirs();
            System.out.println("目录已创建");
        }
        file.delete();
        System.out.println("目录已删除");
    }
}
